package com.ldx.function;

import java.util.function.Function;

/**
 * @author lidexin
 * @create 2021-10-16 17:38
 */
public class Demo01 {
    public static void main(String[] args) {
//         Function function = new Function<String, String>() {
//             @Override
//             public String apply(String str) {
//                 return str;
//             }
//         };
        Function<String, String> function = str -> {return str;};

        System.out.println(function.apply("asd"));
    }
}
